//
//  XZHWebViewController.m
//  Piece
//
//  Created by dllo on 16/6/18.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "XZHWebViewController.h"

@interface XZHWebViewController ()<UIWebViewDelegate>

@end

@implementation XZHWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self createTitle:@"体验详情"];
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back"] style:UIBarButtonItemStylePlain target:self action:@selector(didClickedLeftBarButton:)];
//    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share"] style:UIBarButtonItemStylePlain target:self action:@selector(didClickedRightBarButton:)];
    _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight - 8)];
    _webView.delegate = self;
    //加载网页
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_url]]];
    [self.view addSubview:_webView];
}

//- (void)viewWillAppear:(BOOL)animated{
//    [super viewWillAppear:animated];
//    UIView *view = [self.tabBarController.view viewWithTag:110];
//    view.frame = CGRectMake(0, ScreenHeight, ScreenWidth, 49);
//}
//
////点击进入另外页面时通过改变tabBar上的View的坐标从而达到显示的效果
//- (void)viewWillDisappear:(BOOL)animated{
//    [super viewWillDisappear:animated];
//    UIView *view = [self.tabBarController.view viewWithTag:110];
//    view.frame=CGRectMake(0, ScreenHeight - 49, ScreenWidth, 49);
//
//}
//
//- (void)didClickedLeftBarButton:(UIBarButtonItem *)sender {
//    
//    [self.navigationController popViewControllerAnimated:YES];
//}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
